#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName  :copy_list_37.py
# @Time      :2020/6/23 16:08
# @Author    :Administrator


def clone_runoob(li1):
    li_copy = li1[:]
    return li_copy


def clone_runoob2(li1):
    li_copy = []
    li_copy.extend(li1)
    return li_copy


def clone_runoob3(li1):
    li_copy = list(li1)
    return li_copy


li = [4, 8, 2, 10, 15, 18]
li1 = clone_runoob(li)
print('原始列表：', li)
print('复制后列表:', li1)
li2 = clone_runoob2(li)
print('复制后列表:', li2)
li3 = clone_runoob3(li)
print('复制后列表:', li3)

print(li.count(4))

print(sum(li))
